package com.csun.cmny.provider.model.dto.alert;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-25 21:03
 * @Description: the class handler device alert dto
 */
@Data
@ApiModel(value = "处理设备报警Dto")
public class HandleDeviceAlertDto implements Serializable {

    private static final long serialVersionUID = -9172835378323659118L;

    @NotNull(message = "{device.alert.id.null}")
    private Long id;

    @NotNull(message = "{device.alert.handle.status.null}")
    @Range(min = 0, max = 2, message = "{device.alert.handle.status.range}")
    private Integer handleStatus;

    @NotEmpty(message = "{device.alert.handle.remark.empty}")
    @NotNull(message = "{device.alert.handle.remark.null}")
    private String handleRemark;
}
